#ifndef __MAINSCENE_H__
#define __MAINSCENE_H__
#include "GlobalPrec.h"
#include "HeadLayer.h"
#include "PutGameLayer.h"
#include "../GameLogic/GameManager.h"


class MainScene : public GameScene
{
public:
	REGIST_SCENE_CREATE(MainScene);
public:
	void OnInit()
	{
		CCSize size = CCDirector::sharedDirector()->getWinSize();

		GGameMgr->SetScaleX(size.width/740);
		GGameMgr->SetScaleY(size.height/1060);
		this->setScaleX(GGameMgr->GetScaleX());
		this->setScaleY(GGameMgr->GetScaleY());
	}
	void OnInitLayer()
	{
		REGIST_LAYER(layer_head,HeadLayer);
		REGIST_LAYER(layer_putgame,PutGameLayer);
	}
};

#endif